/*
 * Teknei 2014 - All rights reserved
 */
package com.teknei.acabus.core.services;

import java.util.List;

import javax.ejb.Local;

import com.teknei.acabus.ServiceException;
import com.teknei.acabus.core.entities.NavigationChild;
import com.teknei.acabus.core.entities.NavigationParent;

/**
 * Interface for NavigationService. Finds navigation parents and children
 * @author Jorge Amaro
 * @version 1.0
 * @since 1.0
 *
 */
@Local
public interface NavigationService {

	/**
	 * Finds {@code NavigationParent}. All items
	 * @return a  {@code List} with all the items
	 * @throws ServiceException
	 */
	List<NavigationParent> findNavigationParents() throws ServiceException;

	/**
	 * Finds the NavigationChildren item related to the id of the parent
	 * @param idParent the id of the NavigationParent
	 * @return a List with all the items
	 * @throws ServiceException
	 */
	List<NavigationChild> findNavigationChilds(int idParent) throws ServiceException;

	/**
	 * Finds all the NavigationChildren
	 * @return a List with all the items
	 * @throws ServiceException
	 */
	List<NavigationChild> findNavigationChilds() throws ServiceException;

}
